import request from '/@/utils/request';

export function getBrandAll() {
    return request({
        url: '/v1/admin/brand/all',
        method: 'get',
    })
}

export function getBrandList(query?:Object) {
    return request({
        url: '/v1/admin/brand/list',
        method: 'get',
        params:query
    })
}

export function getBrandInfo(id:number) {
    return request({
        url: '/v1/admin/brand/info',
        method: 'get',
        params:{id},
    })
}


export function saveBrand(data:object) {
    return request({
        url: '/v1/admin/brand/save',
        method: 'post',
        data:data
    })
}


export function deleteBrand(id:number) {
    return request({
        url: '/v1/admin/brand/delete',
        method: 'delete',
        data:{id}
    })
}
